﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using nspLable.Using;
public partial class Manage_MakeHtml_News_Detail : System.Web.UI.Page
{
     int ID=0;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Request.QueryString["id"] != null)
        {
            if (Base.GetRequest.isNum( Request.QueryString["id"]))
            {
                ID = Convert.ToInt32(Request.QueryString["id"]);
            }
        }
        if (!IsPostBack)
        {
            try
            { 
                if (ID != 0)
                {
                    if(Request.QueryString["page"]==null)
                        Solely.Other.UpOnlyDate("W_Consultative", "ClickCount=ClickCount+1", "id=" + ID);
                    string WSbody = new nspLable.Using.Principal().GetTemplate("News_Detail");
                    Response.Write(WSbody);
                }
                else
                    Response.Redirect("~/Error.aspx");
            }
            catch (Exception Ex)
            {
                Response.Redirect("~/Error.aspx");
            }
       }
    }
}
